import request from '@/utils/request'

export function addStudent(data) {
  return request({
    url: '/system/user/student',
    method: 'post',
    data
  })
}

export function deleteStudent(ids) {
  return request({
    url: `/system/user/student/${ids}`,
    method: 'delete'
  })
}

export function updateStudent(data) {
  return request({
    url: `/system/user/student`,
    method: 'put',
    data
  })
}

export function listStudent(params) {
  return request({
    url: `/system/user/student`,
    method: 'get',
    params
  })
}

export function getStudent(id) {
  return request({
    url: `/system/user/student/${id}`,
    method: 'get'
  })
}
